package com.linzelin.controller;

import com.linzelin.po.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/User")
public class UserController {

    @RequestMapping("/user1")
    public String test(User user, ModelMap modelMap){

        System.out.println(user);
        modelMap.addAttribute("msg",user);
        //通过request发送数据到前端
        return "test";
    }



}
